﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Invoice.aspx.cs" Inherits="WMS6.Web.Billing.Invoice" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Invoice</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initEditNewPage();
        }
        //弹出窗口选择货主
        function selectStatement() {
            var rtnValue = popModalWindow('../Billing/StatementQuery.aspx?from=Invoice&action=txtStatementID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtStatementID").focus();
                document.getElementById("txtStatementID").value = rtnValue;
            }
        }
        
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		
		function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
        
        function selectBillingObject()
        {
            var objectID= document.getElementById("ddlBillingObject").value;
            var rtnValue = null;
            if(objectID != null && objectID.toString().toUpperCase() == "VENDOR")
            {
                rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "CUSTOMER")
            {
                rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "CARRIER")
            {
                rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "BILLINGENTITY")
            {
                rtnValue = popModalWindow('../Configuration/BillingentityQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "OWNER")
            {
                rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
 
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtBillingObject").focus();
                document.getElementById("txtBillingObject").value = rtnValue;
            }
        }
        
        function setPaymentRowIndex(rowIndex)
        {
            document.getElementById("hdnRowIndex").value = rowIndex;
        }
        
        //只允许输入数字，并且第一个字符不能为0
        function checkInputPageIndex(obj)
        {
            if(obj!=null)
            {
                var inputIndex = obj.value;
                inputIndex = inputIndex.replace(/[^\d]/g,'');
                if(inputIndex.length == 1 && inputIndex == "0")
                {
                    obj.value = "";
                }
                else
                {
                    obj.value = inputIndex;
                }
            }
        }
        
        function newInvoice() {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Invoice.aspx?from=" + escape(from);
            return false;
        } 
        function confirmMsg(code) {
            
            if (code == "F9210_006") {
                if (confirm('<%=GetGlobalMsgResource("F9210_006") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            if (code == "F9210_007") {
                if (confirm('<%=GetGlobalMsgResource("F9210_007") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
            else if (code == "F9210_008") {
                if (confirm('<%=GetGlobalMsgResource("F9210_008") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        } 
    </script>

</head>
<body>
    <form id="F9211" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="发票" 
                            meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="False"
                            OnClick="btnGoBack_Click"  />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"   Enabled="False"
                            AccessKey="n" OnClientClick="newInvoice(); return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            Enabled="False" AccessKey="n" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            Enabled="False" AccessKey="n" OnClientClick="javascript:if(confirmMsg('F9210_006')) return true; else return false;" OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                             class="button" onclick="showAction();" />
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                        meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,3)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">基本信息</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3);"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                            meta:resourcekey="one2">&nbsp;发票明细&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL3">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3);"
                        id="divM3">
                        <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                            meta:resourcekey="one3">&nbsp;收/付款明细&nbsp;</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR3">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720px" style="margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblInvoiceID" runat="server" CssClass="label" Text="发票编号" 
                                        meta:resourcekey="lblInvoiceID"></asp:Label><span class="must_input">*</span>  
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblDueFromTo" runat="server" CssClass="label" Text="应收应付" 
                                         meta:resourcekey="lblDueFromTo"></asp:Label><span class="must_input">*</span>  
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblBillingObject" runat="server" CssClass="label" Text="对象类型" 
                                            meta:resourcekey="lblBillingObject"></asp:Label><span class="must_input">*</span>  
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblBillingObjectID" runat="server" CssClass="label" Text="计费对象" 
                                        meta:resourcekey="lblBillingObjectID"></asp:Label><span
                                        class="must_input">*</span> 
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtInvoiceID" runat="server" CssClass="textbox" MaxLength="20" 
                                         meta:resourcekey="txtInvoiceID" ></asp:TextBox>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlDueFromTo" runat="server" CssClass="mediumselectbox" 
                                        meta:resourcekey="ddlDueFromTo">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlBillingObject" runat="server" 
                                        CssClass="mediumselectbox" OnTextChanged="ddlBillingObject_TextChanged" AutoPostBack="true"
                                        meta:resourcekey="ddlBillingObject" Font-Overline="False"> 
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtBillingObject" runat="server" CssClass="textbox"
                                        meta:resourcekey="txtBillingObject" ></asp:TextBox><img src="../Images/icon_find.gif" id="img1" runat="server" alt="select one item" class="img" onclick="selectBillingObject();"/>
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                   <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                        meta:resourcekey="lblStatus"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblBillingDate" runat="server" CssClass="label" Text="开票日期" 
                                        meta:resourcekey="lblBillingDate"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                     <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                        meta:resourcekey="ddlStatus">
                                     </asp:DropDownList>
                                </td>
                                <td>
                                      <asp:TextBox ID="txtBillingDate" runat="server" CssClass="textbox" MaxLength="20" 
                                         meta:resourcekey="txtBillingDate" ></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtBillingDate)" />
                                </td>
                                <td>
                                     <asp:CheckBox ID="chkIsInvoiceSubmit" runat="server" CssClass="checkbox" Text="发票上交" Checked="false" Enabled = "false"
                                        meta:resourcekey="chkIsInvoiceSubmit" />
                                </td>  
                                <td>
                                     <asp:CheckBox ID="chkIsAmountSubmit" runat="server" CssClass="checkbox" Text="款项上交" Checked="false" Enabled = "false"
                                        meta:resourcekey="chkIsAmountSubmit" />
                                </td>
                            </tr> 
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                                <td width="180">
                                    
                                </td>
                                </td>
                                <td width="180">
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" rowspan="3">
                                     <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea"  TextMode="MultiLine" MaxLength = "100" meta:resourcekey="txtRemark"></asp:TextBox>
                                </td>
                                <td>
                                    
                                </td>
                                <td>
                                    
                                </td>
                            </tr>                       
                            
                            <tr>
                                <td>
                                  
                                </td>
                                <td>             
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none;">
                        <table width="350px" style="margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                                    
                                                    OnClick="btnAddDetail_Click" Enabled="False" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDeleteDetail%>"
                                                    OnClientClick="javascript:if(confirmMsg('F9210_007')) return true; else return false;"
                                                    OnClick="btnDeleteDetail_Click" Enabled="False" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnPayment" runat="server" CssClass="button" Text="实收实付"
                                                    OnClientClick="javascript:if(confirmMsg('F9210_008')) return true; else return false;"
                                                    OnClick="btnPayment_Click" Enabled="False" meta:resourcekey="btnPayment" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvInvoiceDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"  PageSize = "50"
                                            CssClass="gridview" OnRowDataBound="gvInvoiceDetail_RowDataBound" DataKeyNames="LineID,Status,InvoiceAmount,CurPayAmount,PayAmount"
                                            AllowPaging="True" OnPageIndexChanging="gvInvoiceDetail_PageIndexChanging" Width="1050px"
                                            OnSorting="gvInvoiceDetail_Sorting" 
                                            meta:resourcekey="gvInvoiceDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" 
                                                    meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>                                              
                                                <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" 
                                                    SortExpression="LineID" meta:resourcekey="LineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvInvoiceDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvInvoiceDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="明细" FooterText="明细" meta:resourcekey="Detail">
                                                    <ItemTemplate>
                                                        <a href='<%# FormatUrl("InvoiceDetail.aspx?from={0}&ID={1}&LineID={2}&Type=Edit",this.hdnFrom.Value,this.txtInvoiceID.Text,Eval("LineID").ToString()) %>'
                                                            target="_self">
                                                            <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="receipt" /></a>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="StatementID" HeaderText="对账单" FooterText="对账单"
                                                    SortExpression="StatementID" meta:resourcekey="StatementID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>  
                                                
                                                <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态"  Visible = "false"
                                                    SortExpression="Status" meta:resourcekey="Status">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField> 
                                                
                                                <asp:BoundField DataField="StatusDescr" HeaderText="状态" FooterText="状态" 
                                                    SortExpression="StatusDescr" meta:resourcekey="StatusDescr">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField> 
                                                
                                                <asp:BoundField DataField="Descr" HeaderText="开票费用" FooterText="开票费用" 
                                                    SortExpression="Descr" meta:resourcekey="Descr">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField> 
                                                
                                                <asp:BoundField DataField="InvoiceAmount" HeaderText="开票金额" FooterText="开票金额" 
                                                    SortExpression="InvoiceAmount" meta:resourcekey="InvoiceAmount">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField> 
                                                
                                                <asp:TemplateField FooterText="本次收/付款" HeaderText="本次收/付款" SortExpression="CurPayAmount" 
                                                    meta:resourcekey="CurPayAmount">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="txtCurPayAmount" runat="server" Text='<%# GetPreferenceDigit(Eval("CurPayAmount").ToString()) %>'
                                                            Width="100px" AutoPostBack="True" MaxLength="12" OnTextChanged="txtCurPayAmount_TextChanged" 
                                                            meta:resourcekey="txtCurPayAmount"></asp:TextBox>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                
                                                <asp:BoundField DataField="PayAmount" HeaderText="已收/付金额" FooterText="已收/付金额" 
                                                    SortExpression="PayAmount" meta:resourcekey="PayAmount">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField> 
                                                
                                                <asp:TemplateField FooterText="备注" HeaderText="备注" SortExpression="Remark" meta:resourcekey="Remark">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("Remark").ToString() %>'
                                                            meta:resourcekey="Remark"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                                </asp:TemplateField>                                       
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height:30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_3" style="display: none;">
                        <table width="350px" style="margin-left: 10px; margin-top: 10px;">
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvInvoicePaymentDetail" runat="server" AllowSorting="false" AutoGenerateColumns="False" PageSize = "50"
                                            CssClass="gridview" OnRowDataBound="gvInvoicePaymentDetail_RowDataBound" DataKeyNames=""
                                            AllowPaging="True" OnPageIndexChanging="gvInvoicePaymentDetail_PageIndexChanging" Width="600px"
                                            meta:resourcekey="gvInvoicePaymentDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" 
                                                    meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>                                              
                                                <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" 
                                                    SortExpression="LineID" meta:resourcekey="LineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvInvoicePaymentDetail');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvInvoicePaymentDetail');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>

                                                <asp:BoundField DataField="StatementID" HeaderText="对账单" FooterText="对账单"
                                                    SortExpression="StatementID" meta:resourcekey="StatementID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>  

                                                <asp:BoundField DataField="PayAmount" HeaderText="收/付款金额" FooterText="收/付款金额" 
                                                    SortExpression="PayAmount" meta:resourcekey="PayAmount2">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField> 
                                                <asp:BoundField DataField="CreatedBy" HeaderText="收/付款人" FooterText="收/付款人" 
                                                    SortExpression="CreatedBy" meta:resourcekey="CreatedBy">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>  
                                                <asp:BoundField DataField="CreatedDate" HeaderText="收/付款时间" FooterText="收/付款时间" 
                                                    SortExpression="CreatedDate" meta:resourcekey="CreatedDate">
                                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                                </asp:BoundField>                                 
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height:30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <input type="hidden" id="hdnFlag" runat="server" />  
                <input type="hidden" id="hdnRowIndex" runat="server" /> 
                <input id="hdnLineID" runat="server" type="hidden"></input>
                <input id="hdnInvoiceID" runat="server" type="hidden"></input>    
                <input type="hidden" id="hdnDataFormat" runat="server" />
                <input type="hidden" id="hdncalendarFlag" runat="server" />     
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;
                    border: none 0 black">
                    <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnInvoiceSubmit" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnInvoiceSubmit" runat="server" Text="发票上交"
                                    OnClick="lnkbtnInvoiceSubmit_Click"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnAmountSubmit" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnAmountSubmit" runat="server" Text="款项上交"
                                    OnClick="lnkbtnAmountSubmit_Click"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnInvoiceCancle" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnInvoiceCancle" runat="server" Text="发票取消"
                                    OnClick="lnkbtnInvoiceCancle_Click"></asp:LinkButton>
                            </td>
                        </tr>
                        <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                            <td class="line" id="tdlnkbtnAmountCancle" runat="server" visible="False">
                                <asp:LinkButton ID="lnkbtnAmountCancle" runat="server" Text="款项取消"
                                    OnClick="lnkbtnAmountCancle_Click"></asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hiddenFlag" />
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
		    hiddenDiv();
			hiddenCalendarDiv();
		//-->
</script>
